<template>
  <div class="dashboard-container">
    <div class="app-container">
      <!-- 自定义组件，标题 -->
      <PageTitle :show-before="true">
        <template v-slot:before>
          <h2>账号申诉</h2>
        </template>
      </PageTitle>
      <el-row style="margin-top: 20px">
        <el-select placeholder="不限处理状态">
          <el-option
            v-for="item in handleStatus"
            :key="item.id"
            :label="item.name"
            :value="item.id"
          >
          </el-option>
        </el-select>
      </el-row>
      <!-- 数据表 -->
      <el-table
        v-loading="downloadLoading"
        ooltip-effect="dark"
        border
        :data="list"
        max-height="500px"
        style="margin-top: 20px"
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="selection" width="55" fixed />
        <el-table-column
          label="真实姓名"
          align="center"
          width="width"
          prop="id"
          fixed
        />
        <el-table-column
          label="处理状态"
          align="center"
          prop="full_name"
          fixed
        />
        <el-table-column
          label="申诉描述"
          align="center"
          prop="phone"
          width="130"
          fixed
        />
        <el-table-column
          label="联系手机"
          align="center"
          prop="school"
          width="180"
        />
        <el-table-column label="添加时间" align="center" prop="qualification">
        </el-table-column>

        <el-table-column
          :label="$t('table.actions')"
          width="150"
          align="center"
          fixed="right"
        >
          <template slot-scope="{ row }">
            <el-button
              type="primary"
              icon="el-icon-edit"
              size="mini"
              :disabled="!checkPermission('Intern-show')"
              @click="addRole('edit', row)"
              >查看</el-button
            >
          </template>
        </el-table-column>
      </el-table>
      <el-row :gutter="10" style="margin-top: 20px">
        <el-col :span="8">
          <el-button type="primary" size="small">处理</el-button>
          <el-button type="danger" size="small">删除</el-button>
        </el-col>
        <el-col :span="16">
          <el-pagination
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page="currentPage4"
            :page-sizes="[10, 20, 50, 100]"
            :page-size="10"
            layout="total, sizes, prev, pager, next, jumper"
            :total="255"
            style="text-align: right"
          >
          </el-pagination>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      handleStatus: [
        { id: 1, name: "不限处理状态" },
        { id: 2, name: "已处理" },
        { id: 3, name: "未处理" },
      ],
    };
  },
};
</script>

<style scoped></style>
